package com.erdos.common.util;

public class AppConstants {
    /* Configuration resouce bundule */
    public static final String CONF_SYSTEM_PARMAS = "SystemParams";


    public static final String Dao_START = "Start Dao";

    public static final String INPUT_PARAMETER = "Input parameter <{0}>";

    public static final String Dao_END = "End Dao";

    public static final String SERVICE_START = "Start Service";

    public static final String SERVICE_END = "End Service";

    public static final String ACTION_START = "ACTION METHOD START <{0}>, User is <{1}>.";

    public static final String ACTION_END = "ACTION METHOD END <{0}>, User is <{1}>.";

    public static final String COMMON = "Common message:<{0}>, <{1}>.";

    public static final String ATTR_XMLMENU = "XML_MENU";
    
    public static final String ATTR_XMLMENU_NEEDMENU = "needMenu=true";

    public static final String LOG_FORMAT_ACTION = "ACTION :<{0}>, <{1}>";

    public static final String LOG_PREFIX_Dao_ERROR = "Dao Error:<{0}>, <{1}>";

    public static final String LOG_PREFIX_SERVICE_ERROR = "Service Error:<{0}>";

    public static final String LOG_PREFIX_BASE_ERROR = "Base Error:<{0}>, <{1}>";

    public static final String LOG_PREFIX_HIBERNATE_ERROR = "Hibernate error handler:<{0}>";

    public static final String LOG_PREFIX_RUNTIME_ERROR = "Runtime error handler:<{0}>";

    public static final String LOG_PREFIX_MAIL_ERROR = "MAIL error:<{0}>, <{1}>";

    public static final String SESSION_CACHE = "SESSION_CACHE";
    
	public static final String REGION_AME = "AME";

	public static final String REGION_EMEA = "EMEA";

	public static final String REGION_APJ = "APJ";
  /* Role, User,UserGroup constants */
  
    public static final String ROLE_SPF = "spfRole";
  
    public static final String USERGROUP_SPF_ADMIN = "SPF.Admin";
    
    public static final String USERGROUP_AME_ADMIN = "AME.Admin";
    
    public static final String USERGROUP_EMEA_ADMIN = "EMEA.Admin";
    
    public static final String USERGROUP_APJ_ADMIN = "APJ.Admin";
    
    public static final String ROLE_OBJECT_REGION = "REGION";
    
    public static final String ROLE_OBJECT_APR = "APR";
    
    public static final String ROLE_OBJECT_USERGROUP = "UserGroup";
    
    public static final int ROLE_DETAIL_TYPE_USERID = 0;
    
    public static final int ROLE_DETAIL_TYPE_USERGROUPID = 1;
    
    public static final int USER_PRIVILEGE_SYS_FUNCTION = 0;
    
    public static final int USER_PRIVILEGE_FUNCTION_GROUP = 1;
    
    public static final int ROLE_FLAG_TYPE_EXECUTION = 1;
    
    public static final int ROLE_FLAG_TYPE_REPORT = 2;
    /* Reference Table */
   
    
    public static final String RESTRICT_CONCURRENT_FUNCTION = "$RESTRICTCONCURRENTFUNCTION";
    

    /* this constant is for the restricted concurrent access function check */
    public static final String FUNCTION_SUFFIX = "FUNCTIONSUFFIX";
    
    // the APRDataUpdateLog status
    public static final String APR_DATA_UPDATELOG_CONFIRM = "Confirm";
    public static final String APR_DATA_UPDATELOG_DISCARD = "Discard";
    public static final String APR_DATA_UPDATELOG_TOBECONFIRM = "To-Be Confirm";

    // the forecast data type
    public static final String HP_FORECAST_DATA_TYPE = "HP Forecast";
    public static final String APR_FORECAST_DATA_TYPE = "APR Forecast";
    public static final String APR_FORECAST_FEEDBACKVER_TOBECONFIRM="To-Be Confirm";
    // the feedback state
    public static final String UPDATE_STATUS_All = "";
    public static final String UPDATE_STATUS_TOBE_FEEDBACK = "To-Be Feedback";
    public static final String UPDATE_STATUS_CONFIRM="Confirm";
    public static final String UPDATE_STATUS_TOBE_CONFIRM="To-Be Confirm";
    public static final String UPDATE_STATUS_DISCARD="Discard";
    
    public static final String APR_FORECAST_FEEDBACK_VERSION_DETAIL="detail";
    
    //the forecast operation type
    public static final String FORECAST_CONFIRM="Confirm";
    public static final String FORECAST_INPUT="Input";
    /**
     * unknow element
     */
    public static final String UNKOWN_TYPE = "Unknown";
    
    public static final String NULL_STRING = "Null";
    
    public static final String READONLY = "readonly";

    public static final String DIFFERENCE_CATEGORY = "Difference";

    public static final String ALL_CONDITIONS="ALL";
    
    /**DOWNLOAD_FORMAT**/
    public static final String DOWNLOAD_FORMAT_MATAIN_PRODUCT="/downloadformat/ProductReport.xls";
    public static final String DOWNLOAD_FORMAT_MATAIN_SKU="/downloadformat/SkuReport.xls";
    public static final String DOWNLOAD_FORMAT_MATAIN_APR="/downloadformat/AprReport.xls";
    public static final String DOWNLOAD_FORMAT_MATAIN_APRDATA="/downloadformat/AprDataReport.xls";
    public static final String DOWNLOAD_FORMAT_APRDATAUPLOAD_DETAIL="/downloadformat/AprDataUploadLogDetail.xls";
    public static final String DOWNLOAD_FORMAT_FORECAST_FEEDBACK="/downloadformat/ForecastFeedbackReport.xls";
    public static final String DOWNLOAD_FORMAT_EVALUATION ="/downloadformat/EvaluationReport.xls";
    public static final String DOWNLOAD_FORMAT_FORECAST ="/downloadformat/ForecastReport.xls";
    //REXP Constant
    public static final String NA_STRING="NA";
    
    
    public static final String DirectMonthlyFcast = "Direct Monthly Fcast";
    public static final String MovingAverageMonthlyFcast = "Moving Average Monthly Fcast";
    public static final String QuarterlyBasedMonthlyFcast = "Quarterly Based Monthly Fcast";
    
    
    public static final String SYS_USER_CD = "SYSTEM"; 
    
    public static interface ExceptionManagement{
    	public static final String CONFIGURATION_FILE_DIR = "FileDir";
    	public static final String CONFIGURATION_LOG_INTERFACE_CONTENT_DIRECTORY="interface_content_directory";
    	
    }
}	

